<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试提交方式</title>
</head>
<body>
<a href="http://localhost:8080/MyTest2/msl">我是get</a>
<form action="msl" method="post">
    <input type="submit">
</form>

<input type="button" id="mid" value="按钮">
</body>
<script>
    document.getElementById("mid").onclick = function () {
        location.href = "msl"
    }
</script>
</html>